package com.demo.demo.Thread;
public class SharedIsNoThread extends Thread{  
    private int count = 5;  
      
    public SharedIsNoThread(String name){  
        this.setName(name);  
    }  
      
    @Override  
    public void run() {  
        super.run();  
        while(count>0){  
            count--;  
            System.out.println("由"+Thread.currentThread().getName()+"计算，count="+count);  
        }  
    }  
}